package org.thm.dao.impl;

import org.apache.commons.dbutils.handlers.ScalarHandler;
import org.thm.dao.productDao;

public class productDaoimpl extends BaseDao implements productDao {

	@Override
	public Integer getcount(String key) {
		String sql="select count(1) from product where  content like ?";
		try {
			Object query2 = query.query(sql, new ScalarHandler(),key);
			return Integer.parseInt(query2.toString());
			
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}


}
